package minderupt.selenate.core;

import java.util.Calendar;
import java.util.LinkedList;
import java.util.List;

/**
 * Author:  Michael Dowling <michael.dowling@minderupt.com>
 */
public class TestCase {

    private List<TestStep> testSteps = new LinkedList<TestStep>();
    private String name;

    private Calendar start;
    private Calendar end;

    public TestCase(String name) {
        this.name = name;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<TestStep> getTestSteps() {
        return testSteps;
    }

    public void setTestSteps(List<TestStep> testSteps) {
        this.testSteps = testSteps;
    }

    public Calendar getStart() {
        return start;
    }

    public void setStart(Calendar start) {
        this.start = start;
    }

    public Calendar getEnd() {
        return end;
    }

    public void setEnd(Calendar end) {
        this.end = end;
    }

    public long getDuration() {

        return(this.end.getTimeInMillis() - this.start.getTimeInMillis());


    }



}
